package com.zretc.entity;

/**
 *销售表
 */
public class Sales {

    private Integer salesId;//销售编号
    private Integer productId;//商品编号
    private Integer salesCount;//数量
    private String orderId;//订单编号
    private String salesDate;//时间
    private Integer salesPrice;//价格
    private Order order;//订单对象
    private Product product;//商品对象

    public Sales() {
    }

    public Sales(Integer salesId, Integer productId, Integer salesCount,
                 String orderId, Integer salesPrice, Order order, Product product,String salesDate) {
        this.salesId = salesId;
        this.productId = productId;
        this.salesCount = salesCount;
        this.orderId = orderId;
        this.salesPrice = salesPrice;
        this.order = order;
        this.product = product;
    }
    public String getSalesDate() {
        return salesDate;
    }

    public void setSalesDate(String salesDate) {
        this.salesDate = salesDate;
    }

    public Integer getSalesId() {
        return salesId;
    }

    public void setSalesId(Integer salesId) {
        this.salesId = salesId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getSalesCount() {
        return salesCount;
    }

    public void setSalesCount(Integer salesCount) {
        this.salesCount = salesCount;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getSalesPrice() {
        return salesPrice;
    }

    public void setSalesPrice(Integer salesPrice) {
        this.salesPrice = salesPrice;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    @Override
    public String toString() {
        return "Sales{" +
                "salesId=" + salesId +
                ", productId=" + productId +
                ", salesCount=" + salesCount +
                ", orderId='" + orderId + '\'' +
                ", salesDate='" + salesDate + '\'' +
                ", salesPrice=" + salesPrice +
                ", order=" + order +
                ", product=" + product +
                '}';
    }
}
